<template>
  <div>{{ data }}</div>
</template>

<script setup lang="ts">
import { useQuery } from "vue-query";

const fetcher = async () =>
  await fetch("https://jsonplaceholder.typicode.com/posts").then((response) =>
    response.json()
  );

const { data, suspense } = useQuery("test", fetcher);

await suspense();
</script>
